<template>
  <div class="common_top">
    <!--顶部页面信息-->
    <div class="top">
      <div class="top_left">鲜花网，订花行业优质平台！</div>
      <div class="top_right">
        <el-breadcrumb separator="|">
          <el-breadcrumb-item>
            <router-link to="/index">鲜花网首页</router-link>
          </el-breadcrumb-item>
          <!--做用户登录操作-->
          <el-breadcrumb-item>
            <router-link to="/" v-if="accountName==null">商户登录</router-link>
            <span v-else>欢迎你:{{accountName}}</span>
            
          </el-breadcrumb-item>
          <!--退出系统操作-->
          <el-breadcrumb-item>
              <el-link type="info" @click="logout">退出登录</el-link>
          </el-breadcrumb-item>

          <el-breadcrumb-item></el-breadcrumb-item>
        </el-breadcrumb>
      </div>
    </div>
    <!--中间页面信息-->
    <div class="middle">
      <div class="middle_left">
        <p class="p1"> 鲜 花 网 </p>
        <p class="p2">www.xianhua.com</p>
        <p class="p3">商户后台</p>
        <p class="p4"><i class="el-icon-phone-outline"></i></p>
        <p class="p5">热线电话:888-888-888</p>
      </div>
    </div>
  </div>

</template>


<script>
export default {
  name: "CommonTopView",
  data() {
    return{
      accountName: '',
    }
  },
  
  methods:{
    logout() {
      sessionStorage.clear()
     this.$router.push("/")
    }
  },
  created() {
    this.accountName = sessionStorage.getItem('accountName');
  }
}
</script>


<style scoped lang="less">
.common_top{
  position: absolute;
  top: 0;
  width: 100%;
  height:140px
}

.top {
  background-color: rgba(252, 252, 252, 1);
  padding: 10px;
  border-bottom: 1px solid rgba(242, 242, 242, 1);
  height: 15px
}

.top_left {
  float: left;
  display: inline-block;
  font-size: 12px;
}

.top_right {
  float: right;
  display: inline-block;
}

.middle_left {
  position: relative;
  border-bottom: 1px solid rgba(242, 242, 242, 1);
  height: 100px;
}

.middle_left .p1 {
  position: absolute;
  top: 0;
  left: 30px;
  font-family: 'Arial-BoldMT', 'Arial Bold', 'Arial', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 30px;
  color: #D5637E;
  line-height: 30px;

}

.middle_left .p2 {
  position: absolute;
  top: 50px;
  left: 33px;
  color: #D5637E;
  font-size: 12px;
}

.middle_left .p3 {
  position: absolute;
  top: 11px;
  left: 180px;
  font-size: 22px;
}

.middle_left .p4 {
  position: absolute;
  font-size: 30px;
  right: 300px;
  color: #D5637E;
}

.middle_left .p5 {
  position: absolute;
  font-size: 20px;
  right: 90px;
  top: 10px;
  color: black;
}



</style>